package common.constants;


public interface PdfConstants {
	/**
	 * 当前运行系统
	 */
	public static String RUN_ENVIR	= System.getProperties().getProperty("os.name");
	
	public static String PDFWINDOW_ROOT = "D:/projects/";
	
	public static String PDFLINUX_ROOT = "/data/media/projects/";
	
	public static final String PDFMAPPING_FOLDER= "/static/projects/";
	
	public static String FILE_ROOT = "Linux".equals(RUN_ENVIR) ? PDFLINUX_ROOT : PDFWINDOW_ROOT;
	
	public static final String FOLDER = PdfConstants.FILE_ROOT + "upl/";

	public static final String STATIC_IMT_FLODER = PdfConstants.PDFMAPPING_FOLDER + "upl/";



	/** PDF相关 **/
	public abstract class Pdf {

		public static final String PDF_404_URL = PdfConstants.FILE_ROOT + "/imt/recourses/template/404.pdf";

		public static final String MODEL_NAME = "admin_imt_pdf";

		public static final String CMA_SIGNET_NAME = "cma_signet";

		public static final String REPORT_SIGNET_NAME = "report_signet";

		public static final String TEST_SIGNET_NAME = "test_signet";

		public static final String FOLDER_TEMP = FOLDER + "recourses/template/";

		public static final String FOLDER_FONT = FOLDER + "recourses/fonts/";

		public static final String FOLDER_LOGO = FOLDER + "recourses/logo/";

		public static final String FOLDER_2D = FOLDER + "projects/2d/";

		public static final String FOLDER_PDF = FOLDER + "projects/pdf/";

		public static final String SUFFIX_PDF = ".pdf";

		public static final String SUFFIX_2D = ".png";

	}



	/**
	 * 文件存放根路径
	 */
	public abstract class Sys_File {

		static final String UPLOAD_URL = PdfConstants.FOLDER + "file/";
	}

}
